package day03;

public class OperDemo3 {
    public static void main(String[] args) {
        //逻辑运算符：&&
        int a=5,b=10,c=5;
       /* boolean b1=b>=a && b<c;
        System.out.println(b1);//false
        System.out.println(b<=c && b>a);//false
        System.out.println(a==c && b>=a);//true
        int age=65;
        System.out.println(age>=0 && age<=88);//true
        System.out.println(age >=65 && age<=65);//true
        System.out.println(age>=66 && age<=100);
        int score=120;
        System.out.println(score>=20 && score<=150);*/
       /* System.out.println(b>=a || c>b);//true
        System.out.println(a>b || a>c);//false
        System.out.println(a+b>c || c>a+b);//true
        System.out.println(!(a+c==b));//false
        System.out.println(!(a==b));//true

        boolean b2=!(a<b);
        System.out.println(b2);//false
        System.out.println(!(a>b));//true*/
        /*boolean b3=a>b && c++>2;
        System.out.println(b3);
        System.out.println(c);*/
        boolean b4=a<b || c++>2;
        System.out.println(b4);
        System.out.println(c);

    }
}
